<?php

// home

$ar = array(
    'route' => '/profile/:id/*',
    'defs' => array(
        'module' => 'user',
        'controller' => 'profile',
        'action' => 'index',
    ),
    'reqs' => array(),
);

$db = Zend_Db_Table_Abstract::getDefaultAdapter();


$db -> insert('nuo_core_routes', array(
    'name' => 'user_profile',
    'module' => 'user',
    'enabled' => 1,
    'priority' => 999,
    'params' => serialize($ar)
));

echo $db -> lastInsertId();
